<script lanuage="javascript">
$(document).ready(function(){
	$("#form1").validate({
                    blur:true,
		errorClass: "wrong",
		errorElement: "span",
		rules: {
			"data[Shop][shopname]": {required: true},
                        "data[Shop][address]": {required: true},
                        "data[Shop][telephone]": {required: true},
                        "data[Shop][mobilephone]": {required: true},

                        "data[Shop][shop_info]]": {required: true},
                        "data[Shop][web_address]]": {required: true}
		},
		messages: {
			"data[Shop][shopname]": {required: " 必填"},
                        "data[Shop][address]": {required: " 必填"},
                        "data[Shop][telephone]": {required: " 必填"},
                        "data[Shop][mobilephone]": {
                                                     required: " 必填"
                                                    },
                        "data[Shop][shop_info]]": {required: " 必填"},
                        "data[Shop][web_address]]": {required: " 必填"}
		}
	});

});
</script>
<span id="help"> </span>

      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="" valign="top"><table width="98%" height="32" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f8f8f8" class="table_title">
              <tr>
                <td width="99%" class="text_blue"><strong>完善您的商户信息</strong></td>
              </tr>
            </table>
            <?php echo $form->create("Shops",array('action'=>'doEditShopinfo','enctype'=>'multipart/form-data','name'=>'form1','id'=>'form1','method'=>'post','inputDefaults'=>array('label'=>false,'div'=>false)));?>
              <table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0" class="huadianziliao">
                <tr>
                  <td height="46" colspan="4"  align="left" class="">完善您花店的详细信息以及联系地址 带<span class="note">*</span>为必填项</td>
                </tr>
                <tr>
                  <td width="69" height="38"  align="right" class="">花店名称：<span class="note">*</span></td>
                  <td width="261"  align="left" class="bank_left">
                    <?php echo $form->input("Shop.shopname",array('maxlength'=>'25'));?>
                 </td>
                  <td width=""  align="left" class="text_00015">输入花店名字，建议输入您的花店所在地的全称方便其他用户查找防止有重复，如：北京花集</td>
                  <td width=""  align="left" class="">&nbsp;</td>
                </tr>
                <!---<tr>
                  <td height="38"  align="right" class="">省份：<span class="note">*</span></td>
                  <td  align="left" class="bank_left"><select name="province" id="province" style="width:80px;"readonly="readonly" onChange="change_address2(document.memberform.province,document.memberform.city);" >
                      <option value="">选择省份</option>
                      <script language="javascript">
							</script>
                    </select>
                    <select name="city" style="width:80px;" id="city" >
                      <option value="">选择城市</option>
                    </select>
                    <script language="JavaScript">
                        var qTxt = "3700";
                        if (qTxt == "")
                         { document.memberform.province.selectedIndex=0;}
                         else
                         { document.memberform.province.selectedIndex=check_select_index(document.memberform.province,qTxt);
                         }
                        var qTxt = "370100";
                        if (qTxt == "")
                         { document.memberform.city.selectedIndex=0;}
                         else
                         {
                         change_address2(document.memberform.province,document.memberform.city);
                         document.memberform.city.selectedIndex=check_select_index(document.memberform.city,qTxt);
                         }
							</script></td>
                  <td  align="left" class="text_00015">&nbsp;</td>
                  <td  align="left" class="">&nbsp;</td>
                </tr>--->
                <tr>
                  <td height="38"  align="right" class="">详细地址：<span class="note">*</span></td>
                  <td  align="left" class="bank_left">
                    <?php echo $form->input("Shop.address",array('maxlength'=>'32'));?>
                  </td>
                  <td  align="left" class="text_00015"><span id="address_msg">请认真填写你所在城市位置，以便及时给您取得联系。</span></td>
                  <td  align="left" class="">&nbsp;</td>
                </tr>
                <tr>
                  <td height="38"  align="right" class="">QQ号码：<span class="text_ffffff">*</span></td>
                  <td  align="left" class="bank_left"><?php echo $form->input("Shop.qq",array('maxlength'=>'11'));?></td>
                  <td  align="left" class="text_00015"><span id="im_msg">如果您有qq等即时通讯的工具，希望您填入，我们即时与您联系。</span></td>
                  <td  align="left" class="">&nbsp;</td>
                </tr>
                <tr>
                  <td height="38"  align="right" class="">淘宝旺旺：<span class="text_ffffff">*</span></td>
                  <td  align="left" class="bank_left"><?php //echo $form->input("Shop.address",array('maxlength'=>'255'));?></td>
                  <td  align="left" class="text_00015"><span id="im_msg">如果您有淘宝旺旺即时通讯的工具，希望您填入，我们即时与您联系。</span></td>
                  <td  align="left" class="">&nbsp;</td>
                </tr>
                <tr>
                  <td height="38"  align="right" class="">联系电话：<span class="note">*</span></td>
                  <td  align="left" class="bank_left"><?php echo $form->input("Shop.telephone",array('maxlength'=>'20'));?></td>
                  <td  align="left" class="text_00015">&nbsp;</td>
                  <td  align="left" class="">&nbsp;</td>
                </tr>
                <tr>
                 <!---<td height="20"  align="right" class="">&nbsp;</td>
                  <td  align="left" class="bank_left"><input name="phone_country" type="text" size="3" value="086" />
                    -
                    <input name="phone_area" type="text" size="4" value="022" />
                    -
                    <?php echo $form->input("Shop.telephone",array('maxlength'=>'11'));?>
                  </td>
                  <td  align="left" class="text_00015">&nbsp;</td>
                  <td  align="left" class="">&nbsp;</td>
                </tr>--->
                <tr>
                  <td height="38"  align="right" class="">手机号码：<span class="note">*</span></td>
                  <td  align="left" class="bank_left"><?php echo $form->input("Shop.mobilephone",array('maxlength'=>'11'));?></td>
                  <td  align="left" class="text_00015">&nbsp;</td>
                  <td  align="left" class="">&nbsp;</td>
                </tr>
                <tr>
                  <td height="38"  align="right" class="">花店信息：<span class="note">*</span></td>
                  <td height="50"  align="left" class="bank_left">
                    <?php echo $form->input("Shop.shop_info",array('cols'=>'41','rows'=>'5'));?>
                  </td>
                  <td  align="left" class="text_00015"><span id="florist_info_msg">建议您填写，以便潜在的客户找到您，简要的介绍一下自己的花店。</span></td>
                  <td  align="left" class="">&nbsp;</td>
                </tr>
                <!---<tr>
                  <td height="38"  align="right" class="">花店信息：<span class="note">*</span></td>
                  <td  align="left" class="bank_left"><span class="01">
                    <input name="florist_transferrange" id="florist_transferrange" type="hidden">
                    <input name="button32" type="button" class="btn3_mouseout" onMouseOver="this.className='btn3_mouseover'" onMouseOut="this.className='btn3_mouseout'" value="选择配送范围" onclick='showAddress()'/>
                    </span></td>
                  <td  align="left" class="text_00015"><span id="florist_transferrange_show"> 请选择您的配送范围，方便及时给您取得联系。</span></td>
                  <script>showtransferrange('3700-370100||##山东-济南||');</script>
                  <td  align="left" class="">&nbsp;</td>
                </tr>--->
                <tr>
                  <td height="38"  align="right" style="font-family:Arial;">花店logo：<span class="text_ffffff">*</span></td>
                  <td  align="left" class="bank_left">
                    <?php echo $form->file('Shop.logo',array('size'=>30));?>
                  </td>
                  <td  align="left" class="text_00015">&nbsp;</td>
                  <td  align="left" class="">&nbsp;</td>
                </tr>
                <tr>
                  <td height="88"  align="right" style="font-family:Arial;">&nbsp;</td>
                  <td  align="left" class="bank_left">
                    <?php
                        if( empty($this->data['Shop']['logo']) ){
                    ?>
                        <img src="/img/nologo.jpg" name="temp_pic" width="118" height="110" id="temp_pic" />
                    <?php
                        } else{
                    ?>
                        <img src="<?php echo $this->data['Shop']['logo'];?>" name="temp_pic" width="118" height="110" id="temp_pic" />
                    <?php
                        }
                    ?>
                    
                  </td>
                  <td  align="left" class="text_00015">&nbsp;</td>
                  <td  align="left" class="">&nbsp;</td>
                </tr>
                <tr>
                  <td height="38"  align="right" class="">传真电话：<span class="note">*</span></td>
                  <td  align="left" class="bank_left">国家区号　地区区号 　电话号码</td>
                  <td  align="left" class="text_00015">&nbsp;</td>
                  <td  align="left" class="">&nbsp;</td>
                </tr>
               <!--- <tr>
                  <td height="20"  align="right" class="">&nbsp;</td>
                  <td  align="left" class="bank_left"><input name="phone_country" type="text" size="3" value="086" />
                    -
                    <input name="phone_area" type="text" size="4" value="022" />
                    -
                    <input name="fax" type="text" value="" size="10" /></td>
                  <td  align="left" class="text_00015">&nbsp;</td>
                  <td  align="left" class="">&nbsp;</td>
                </tr>--->
                <tr>
                  <td height="38"  align="right" class="">网站主页：<span class="note">*</span></td>
                  <td  align="left" class="bank_left"><?php echo $form->input("Shop.web_address",array('maxlength'=>'100'));?></td>
                  <td  align="left" class="text_00015">(例:http://www.ourbloom.com)</td>
                  <td  align="left" class="">&nbsp;</td>
                </tr>
                <tr>
                  <td height="38"  align="right" class="">电子邮箱：<span class="text_ffffff">*</span></td>
                  <td  align="left" class="bank_left"><?php echo $form->input("Shop.email",array('maxlength'=>'64'));?></td>
                  <td  align="left" class="text_00015">&nbsp;</td>
                  <td  align="left" class="">&nbsp;</td>
                </tr>
                <tr>
                  <td height="38"  align="right" class="">邮政编码：<span class="text_ffffff">*</span></td>
                  <td  align="left" class="bank_left"><?php echo $form->input("Shop.postcode",array('maxlength'=>'6'));?></td>
                  <td  align="left" class="text_00015">&nbsp;</td>
                  <td  align="left" class="">&nbsp;</td>
                </tr>
                <tr >
                  <td  align="right" class="" colspan="2">是否对顾客赠送荷兰可利鲜保鲜剂 （售后服务）   &nbsp;&nbsp;&nbsp;<a href="http://www.ourbloom.com/service/index.php?page=4#1-6" target="_blank" class="a_blue_c12">什么是可利鲜保鲜剂？</a></td>
                  <td  align="left" class="bank_left">
                    <?php echo $form->radio('Shop.preservative_flag',array('1'=>'是','0'=>'否'),array('value'=>$this->data['Shop']['preservative_flag'],'legend'=>''))?>
                  </td>
                  <td  align="left" class="text_00015">&nbsp;</td>
                </tr>
                <tr>
                  <td height="55" colspan="2"  align="center" class=""><input name="button3" type="submit" class="btn1_mouseout" onMouseOver="this.className='btn1_mouseover'" onMouseOut="this.className='btn1_mouseout'" value="提交修改" style="width:80px; height:26px; cursor:pointer;"  /></td>
                  <td  align="left" class="text_00015">&nbsp;</td>
                  <td  align="left" class="">&nbsp;</td>
                </tr>
              </table>
<?php echo $form->end();?>
</td>
        </tr>
      </table></td>
  </tr>
</table>
<style type="text/css">
.text_666{
	color:#666666;
	font-size:12px;
	font-family:Arial;
}
.bl{
	font-weight:bold;
}
.text_blue{
	color:#37b3e5;
}
A.a_huise_x12:link {color:#666; font-size: 12px;text-decoration:none;}
A.a_huise_x12:visited {color:#666;font-size:12px;text-decoration:none;}
A.a_huise_x12:active {color:#666;font-size: 12px;text-decoration:none;}
A.a_huise_x12:hover {color:#666; font-size: 12px;text-decoration:underline;}
</style>
<!--<table width="100%" height="39" border="0" cellpadding="0" cellspacing="0" class="lei001">
  <tr>
    <td height="38" align="center">北京花集网科技有限公司   Copyright ◎ 2005-2009 ourbloom Corporation, All Rights Reserved </td>
  </tr>
</table>-->
<table width="100%" height="39" border="0" cellpadding="0" cellspacing="0" class="lei001">
  <tr>
    <td><table width="965" align="center" height="73" border="0" cellpadding="0" cellspacing="0" style="margin-top:5px; " >
        <tr>
          <td height="8"></td>
          <td></td>
        </tr>
        <tr>
          <td width="265" align="right"><img src="http://image.ourbloom.com/new_index/200807/footer_logo.gif" width="265" height="73"/></td>
          <td width="685"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="text_666">
              <tr>
                <td width="2%" height="23" align="left">&nbsp;</td>
                <td width="98%" align="left" class="bl"><a href="/aboutus/" target="_blank" class="a_huise_x12">关于我们</a> | <a href="/aboutus/yingxiao/" target="_blank" class="a_huise_x12">广告服务</a> | <a href="/aboutus/index.php?action=cooperation" target="_blank" class="a_huise_x12">商务合作</a> | <a href="/aboutus/index.php?action=job" target="_blank" class="a_huise_x12">诚聘英才</a> | <a href="/aboutus/index.php?action=contact" target="_blank" class="a_huise_x12">联系我们</a> | <a href="/service/" class="a_huise_x12">帮助中心</a> | <a href="/aboutus/index.php?action=agreement" target="_blank" class="a_huise_x12">使用协议</a> | <a href="/aboutus/index.php?action=relief" target="_blank" class="a_huise_x12">免责条款</a> | <a href="/aboutus/index.php?action=ditu" target="_blank" class="a_huise_x12" style="color:#f00;">网站地图</a> |
                  &nbsp;<a href="/redirect.php?http://www.songhua.com/" target="_blank" class="a_huise_x12">去送花网买花</a></span></td>
              </tr>
              <tr>
                <td height="23" align="">&nbsp;</td>
                <td align="left"><span class="text_blue">客服电话：</span><strong>400-7171-500</strong>　中国花协零售业分会会员单位|日本JFTD中国区唯一合作伙伴　　</td>
              </tr>
              <tr>
                <td height="23" align="">&nbsp;</td>
                <td align="left">Copyright &copy; 2010 花集网All Rights Reserved 　　 <a href="http://www.miibeian.gov.cn" target="_blank" class="a_huise_x12">京ICP证 070655号</a> &nbsp; <a href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202009111100039" target="_blank"><img src="http://image.ourbloom.com/hd315/biaoshi.gif" align="absmiddle" border="0" /></a> </td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
